home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-10-28 | 4.9 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6b 77 7a 68 40 63 68 |piled by| kwzh@ch|
|00000020| 75 72 63 68 79 2e 67 6e | 75 2e 61 69 2e 6d 69 74 |urchy.gn|u.ai.mit|
|00000030| 2e 65 64 75 20 6f 6e 20 | 54 68 75 20 4d 61 79 20 |.edu on |Thu May |
|00000040| 32 33 20 31 34 3a 32 35 | 3a 34 38 20 31 39 39 36 |23 14:25|:48 1996|
|00000050| 0a 3b 3b 3b 20 66 72 6f | 6d 20 66 69 6c 65 20 2f |.;;; fro|m file /|
|00000060| 67 64 2f 67 6e 75 2f 65 | 6d 61 63 73 2f 31 39 2e |gd/gnu/e|macs/19.|
|00000070| 30 2f 6c 69 73 70 2f 73 | 63 72 6f 6c 6c 2d 62 61 |0/lisp/s|croll-ba|
|00000080| 72 2e 65 6c 0a 3b 3b 3b | 20 65 6d 61 63 73 20 76 |r.el.;;;| emacs v|
|00000090| 65 72 73 69 6f 6e 20 31 | 39 2e 33 31 2e 31 2e 0a |ersion 1|9.31.1..|
|000000a0| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000b0| 73 69 6f 6e 20 46 53 46 | 20 32 2e 31 30 0a 3b 3b |sion FSF| 2.10.;;|
|000000c0| 3b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 69 |; optimi|zation i|
|000000d0| 73 20 6f 6e 2e 0a 3b 3b | 3b 20 74 68 69 73 20 66 |s on..;;|; this f|
|000000e0| 69 6c 65 20 75 73 65 73 | 20 6f 70 63 6f 64 65 73 |ile uses| opcodes|
|000000f0| 20 77 68 69 63 68 20 64 | 6f 20 6e 6f 74 20 65 78 | which d|o not ex|
|00000100| 69 73 74 20 69 6e 20 45 | 6d 61 63 73 20 31 38 2e |ist in E|macs 18.|
|00000110| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000120| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000130| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000150| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000160| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|00000170| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|00000180| 2d 76 65 72 73 69 6f 6e | 20 22 31 39 2e 32 39 22 |-version| "19.29"|
|00000190| 29 29 29 0a 20 20 20 20 | 28 65 72 72 6f 72 20 22 |))). |(error "|
|000001a0| 60 73 63 72 6f 6c 6c 2d | 62 61 72 2e 65 6c 27 20 |`scroll-|bar.el' |
|000001b0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001c0| 20 45 6d 61 63 73 20 31 | 39 2e 32 39 20 6f 72 20 | Emacs 1|9.29 or |
|000001d0| 6c 61 74 65 72 22 29 29 | 0a 0a 0a 28 72 65 71 75 |later"))|...(requ|
|000001e0| 69 72 65 20 28 71 75 6f | 74 65 20 6d 6f 75 73 65 |ire (quo|te mouse|
|000001f0| 29 29 0a 23 40 32 35 39 | 20 47 69 76 65 6e 20 61 |)).#@259| Given a|
|00000200| 20 73 63 72 6f 6c 6c 20 | 62 61 72 20 65 76 65 6e | scroll |bar even|
|00000210| 74 20 45 56 45 4e 54 2c | 20 72 65 74 75 72 6e 20 |t EVENT,| return |
|00000220| 74 68 65 20 73 63 72 6f | 6c 6c 20 62 61 72 20 70 |the scro|ll bar p|
|00000230| 6f 73 69 74 69 6f 6e 20 | 61 73 20 61 20 72 61 74 |osition |as a rat|
|00000240| 69 6f 2e 0a 54 68 65 20 | 76 61 6c 75 65 20 69 73 |io..The |value is|
|00000250| 20 61 20 63 6f 6e 73 20 | 63 65 6c 6c 20 28 50 4f | a cons |cell (PO|
|00000260| 52 54 49 4f 4e 20 2e 20 | 57 48 4f 4c 45 29 20 63 |RTION . |WHOLE) c|
|00000270| 6f 6e 74 61 69 6e 69 6e | 67 20 74 77 6f 20 69 6e |ontainin|g two in|
|00000280| 74 65 67 65 72 73 0a 77 | 68 6f 73 65 20 72 61 74 |tegers.w|hose rat|
|00000290| 69 6f 20 67 69 76 65 73 | 20 74 68 65 20 65 76 65 |io gives| the eve|
|000002a0| 6e 74 27 73 20 76 65 72 | 74 69 63 61 6c 20 70 6f |nt's ver|tical po|
|000002b0| 73 69 74 69 6f 6e 20 69 | 6e 20 74 68 65 20 73 63 |sition i|n the sc|
|000002c0| 72 6f 6c 6c 20 62 61 72 | 2c 20 77 69 74 68 20 30 |roll bar|, with 0|
|000002d0| 0a 72 65 66 65 72 72 69 | 6e 67 20 74 6f 20 74 68 |.referri|ng to th|
|000002e0| 65 20 74 6f 70 20 61 6e | 64 20 31 20 74 6f 20 74 |e top an|d 1 to t|
|000002f0| 68 65 20 62 6f 74 74 6f | 6d 2e 1f 0a 28 64 65 66 |he botto|m...(def|
|00000300| 61 6c 69 61 73 20 27 73 | 63 72 6f 6c 6c 2d 62 61 |alias 's|croll-ba|
|00000310| 72 2d 65 76 65 6e 74 2d | 72 61 74 69 6f 20 23 5b |r-event-|ratio #[|
|00000320| 28 65 76 65 6e 74 29 20 | 22 c0 09 38 87 22 20 5b |(event) |"..8." [|
|00000330| 32 20 65 76 65 6e 74 5d | 20 32 20 28 23 24 20 2e |2 event]| 2 (#$ .|
|00000340| 20 35 30 35 29 5d 29 0a | 23 40 33 37 32 20 47 69 | 505)]).|#@372 Gi|
|00000350| 76 65 6e 20 61 20 70 61 | 69 72 20 28 4e 55 4d 20 |ven a pa|ir (NUM |
|00000360| 2e 20 44 45 4e 4f 4d 29 | 20 61 6e 64 20 57 48 4f |. DENOM)| and WHO|
|00000370| 4c 45 2c 20 72 65 74 75 | 72 6e 20 28 2f 20 28 2a |LE, retu|rn (/ (*|
|00000380| 20 4e 55 4d 20 57 48 4f | 4c 45 29 20 44 45 4e 4f | NUM WHO|LE) DENO|
|00000390| 4d 29 2e 0a 54 68 69 73 | 20 69 73 20 68 61 6e 64 |M)..This| is hand|
|000003a0| 79 20 66 6f 72 20 73 63 | 61 6c 69 6e 67 20 61 20 |y for sc|aling a |
|000003b0| 70 6f 73 69 74 69 6f 6e | 20 6f 6e 20 61 20 73 63 |position| on a sc|
|000003c0| 72 6f 6c 6c 20 62 61 72 | 20 69 6e 74 6f 20 72 65 |roll bar| into re|
|000003d0| 61 6c 20 75 6e 69 74 73 | 2c 0a 6c 69 6b 65 20 62 |al units|,.like b|
|000003e0| 75 66 66 65 72 20 70 6f | 73 69 74 69 6f 6e 73 2e |uffer po|sitions.|
|000003f0| 20 20 49 66 20 53 43 52 | 4f 4c 4c 2d 42 41 52 2d | If SCR|OLL-BAR-|
|00000400| 50 4f 53 20 69 73 20 74 | 68 65 20 28 50 4f 52 54 |POS is t|he (PORT|
|00000410| 49 4f 4e 20 2e 20 57 48 | 4f 4c 45 29 20 70 61 69 |ION . WH|OLE) pai|
|00000420| 72 0a 66 72 6f 6d 20 61 | 20 73 63 72 6f 6c 6c 20 |r.from a| scroll |
|00000430| 62 61 72 20 65 76 65 6e | 74 2c 20 74 68 65 6e 20 |bar even|t, then |
|00000440| 28 73 63 72 6f 6c 6c 2d | 62 61 72 2d 73 63 61 6c |(scroll-|bar-scal|
|00000450| 65 20 53 43 52 4f 4c 4c | 2d 42 41 52 2d 50 4f 53 |e SCROLL|-BAR-POS|
|00000460| 0a 28 62 75 66 66 65 72 | 2d 73 69 7a 65 29 29 20 |.(buffer|-size)) |
|00000470| 69 73 20 74 68 65 20 70 | 6f 73 69 74 69 6f 6e 20 |is the p|osition |
|00000480| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 62 |in the c|urrent b|
|00000490| 75 66 66 65 72 20 63 6f | 72 72 65 73 70 6f 6e 64 |uffer co|rrespond|
|000004a0| 69 6e 67 20 74 6f 0a 74 | 68 61 74 20 73 63 72 6f |ing to.t|hat scro|
|000004b0| 6c 6c 20 62 61 72 20 70 | 6f 73 69 74 69 6f 6e 2e |ll bar p|osition.|
|000004c0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 72 |..(defal|ias 'scr|
|000004d0| 6f 6c 6c 2d 62 61 72 2d | 73 63 61 6c 65 20 23 5b |oll-bar-|scale #[|
|000004e0| 28 6e 75 6d 2d 64 65 6e | 6f 6d 20 77 68 6f 6c 65 |(num-den|om whole|
|000004f0| 29 20 22 c0 c1 5c 6e 40 | 21 0b 5f 5c 6e 41 a5 21 |) "..\n@|!._\nA.!|
|00000500| 87 22 20 5b 74 72 75 6e | 63 61 74 65 20 66 6c 6f |." [trun|cate flo|
|00000510| 61 74 20 6e 75 6d 2d 64 | 65 6e 6f 6d 20 77 68 6f |at num-d|enom who|
|00000520| 6c 65 5d 20 33 20 28 23 | 24 20 2e 20 38 34 36 29 |le] 3 (#|$ . 846)|
|00000530| 5d 29 0a 23 40 32 34 39 | 20 54 6f 67 67 6c 65 20 |]).#@249| Toggle |
|00000540| 64 69 73 70 6c 61 79 20 | 6f 66 20 76 65 72 74 69 |display |of verti|
|00000550| 63 61 6c 20 73 63 72 6f | 6c 6c 20 62 61 72 73 20 |cal scro|ll bars |
|00000560| 6f 6e 20 65 61 63 68 20 | 66 72 61 6d 65 2e 0a 54 |on each |frame..T|
|00000570| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 61 70 70 6c |his comm|and appl|
|00000580| 69 65 73 20 74 6f 20 61 | 6c 6c 20 66 72 61 6d 65 |ies to a|ll frame|
|00000590| 73 20 74 68 61 74 20 65 | 78 69 73 74 20 61 6e 64 |s that e|xist and|
|000005a0| 20 66 72 61 6d 65 73 20 | 74 6f 20 62 65 0a 63 72 | frames |to be.cr|
|000005b0| 65 61 74 65 64 20 69 6e | 20 74 68 65 20 66 75 74 |eated in| the fut|
|000005c0| 75 72 65 2e 0a 57 69 74 | 68 20 61 20 6e 75 6d 65 |ure..Wit|h a nume|
|000005d0| 72 69 63 20 61 72 67 75 | 6d 65 6e 74 2c 20 69 66 |ric argu|ment, if|
|000005e0| 20 74 68 65 20 61 72 67 | 75 6d 65 6e 74 20 69 73 | the arg|ument is|
|000005f0| 20 6e 65 67 61 74 69 76 | 65 2c 0a 74 75 72 6e 20 | negativ|e,.turn |
|00000600| 6f 66 66 20 73 63 72 6f | 6c 6c 20 62 61 72 73 3b |off scro|ll bars;|
|00000610| 20 6f 74 68 65 72 77 69 | 73 65 2c 20 74 75 72 6e | otherwi|se, turn|
|00000620| 20 6f 6e 20 73 63 72 6f | 6c 6c 20 62 61 72 73 2e | on scro|ll bars.|
|00000630| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 63 72 |..(defal|ias 'scr|
|00000640| 6f 6c 6c 2d 62 61 72 2d | 6d 6f 64 65 20 23 5b 28 |oll-bar-|mode #[(|
|00000650| 66 6c 61 67 29 20 22 08 | 83 08 00 c1 08 21 10 c2 |flag) ".|.....!..|
|00000660| 0b 9e 89 1c 83 15 00 5c | 66 41 82 16 00 c5 29 1e |.......\|fA....).|
|00000670| 06 08 84 23 00 0e 06 3f | 82 2c 00 08 a7 3f 86 2c |...#...?|.,...?.,|
|00000680| 00 08 c7 59 16 06 c8 c9 | ca 5c 22 88 cb 20 89 1e |...Y....|.\".. ..|
|00000690| 5c 66 85 54 00 cd 0e 5c | 66 40 c2 0e 06 42 ce 0e |\f.T...\|f@...B..|
|000006a0| 06 42 44 5c 22 88 0e 5c | 66 41 89 16 5c 66 84 3b |.BD\"..\|fA..\f.;|
|000006b0| 00 cf 2a 87 22 20 5b 66 | 6c 61 67 20 70 72 65 66 |..*." [f|lag pref|
|000006c0| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|000006d0| 20 76 65 72 74 69 63 61 | 6c 2d 73 63 72 6f 6c 6c | vertica|l-scroll|
|000006e0| 2d 62 61 72 73 20 64 65 | 66 61 75 6c 74 2d 66 72 |-bars de|fault-fr|
|000006f0| 61 6d 65 2d 61 6c 69 73 | 74 20 61 73 73 71 20 74 |ame-alis|t assq t|
|00000700| 20 73 63 72 6f 6c 6c 2d | 62 61 72 2d 6d 6f 64 65 | scroll-|bar-mode|
|00000710| 20 30 20 6d 61 70 63 61 | 72 20 23 5b 28 70 61 72 | 0 mapca|r #[(par|
|00000720| 61 6d 2d 6e 61 6d 65 29 | 20 22 08 09 9e 89 1a 3a |am-name)| ".....:|
|00000730| 83 0f 00 5c 6e 0b a1 82 | 16 00 08 0b 42 09 42 89 |...\n...|....B.B.|
|00000740| 11 29 87 22 20 5b 70 61 | 72 61 6d 2d 6e 61 6d 65 |.)." [pa|ram-name|
|00000750| 20 64 65 66 61 75 6c 74 | 2d 66 72 61 6d 65 2d 61 | default|-frame-a|
|00000760| 6c 69 73 74 20 70 61 72 | 61 6d 65 74 65 72 20 73 |list par|ameter s|
|00000770| 63 72 6f 6c 6c 2d 62 61 | 72 2d 6d 6f 64 65 5d 20 |croll-ba|r-mode] |
|00000780| 33 5d 20 28 76 65 72 74 | 69 63 61 6c 2d 73 63 72 |3] (vert|ical-scr|
|00000790| 6f 6c 6c 2d 62 61 72 73 | 20 68 6f 72 69 7a 6f 6e |oll-bars| horizon|
|000007a0| 74 61 6c 2d 73 63 72 6f | 6c 6c 2d 62 61 72 73 29 |tal-scro|ll-bars)|
|000007b0| 20 66 72 61 6d 65 2d 6c | 69 73 74 20 66 72 61 6d | frame-l|ist fram|
|000007c0| 65 73 20 6d 6f 64 69 66 | 79 2d 66 72 61 6d 65 2d |es modif|y-frame-|
|000007d0| 70 61 72 61 6d 65 74 65 | 72 73 20 68 6f 72 69 7a |paramete|rs horiz|
|000007e0| 6f 6e 74 61 6c 2d 73 63 | 72 6f 6c 6c 2d 62 61 72 |ontal-sc|roll-bar|
|000007f0| 73 20 6e 69 6c 5d 20 36 | 20 28 23 24 20 2e 20 31 |s nil] 6| (#$ . 1|
|00000800| 33 33 37 29 20 22 50 22 | 5d 29 0a 23 40 31 31 38 |337) "P"|]).#@118|
|00000810| 20 53 65 74 20 74 68 65 | 20 77 69 6e 64 6f 77 20 | Set the| window |
|00000820| 73 74 61 72 74 20 61 63 | 63 6f 72 64 69 6e 67 20 |start ac|cording |
|00000830| 74 6f 20 77 68 65 72 65 | 20 74 68 65 20 73 63 72 |to where| the scr|
|00000840| 6f 6c 6c 20 62 61 72 20 | 69 73 20 64 72 61 67 67 |oll bar |is dragg|
|00000850| 65 64 2e 0a 45 56 45 4e | 54 20 73 68 6f 75 6c 64 |ed..EVEN|T should|
|00000860| 20 62 65 20 61 20 73 63 | 72 6f 6c 6c 20 62 61 72 | be a sc|roll bar|
|00000870| 20 63 6c 69 63 6b 20 6f | 72 20 64 72 61 67 20 65 | click o|r drag e|
|00000880| 76 65 6e 74 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |vent...(|defalias|
|00000890| 20 27 73 63 72 6f 6c 6c | 2d 62 61 72 2d 73 65 74 | 'scroll|-bar-set|
|000008a0| 2d 77 69 6e 64 6f 77 2d | 73 74 61 72 74 20 23 5b |-window-|start #[|
|000008b0| 28 65 76 65 6e 74 29 20 | 22 08 18 c1 08 38 3a 83 |(event) |"....8:.|
|000008c0| 0d 00 c1 82 0e 00 c2 08 | 38 29 89 1b 40 1c c1 0b |........|8)..@...|
|000008d0| 38 1d 8a c6 5c 66 21 71 | 88 8a 65 c7 0d 64 65 5a |8...\f!q|..e..deZ|
|000008e0| 5c 22 5c 5c 62 88 c8 79 | 88 c9 5c 66 60 5c 22 2d |\"\\b..y|..\f`\"-|
|000008f0| 87 22 20 5b 65 76 65 6e | 74 20 32 20 31 20 65 6e |." [even|t 2 1 en|
|00000900| 64 2d 70 6f 73 69 74 69 | 6f 6e 20 77 69 6e 64 6f |d-positi|on windo|
|00000910| 77 20 70 6f 72 74 69 6f | 6e 2d 77 68 6f 6c 65 20 |w portio|n-whole |
|00000920| 77 69 6e 64 6f 77 2d 62 | 75 66 66 65 72 20 73 63 |window-b|uffer sc|
|00000930| 72 6f 6c 6c 2d 62 61 72 | 2d 73 63 61 6c 65 20 30 |roll-bar|-scale 0|
|00000940| 20 73 65 74 2d 77 69 6e | 64 6f 77 2d 73 74 61 72 | set-win|dow-star|
|00000950| 74 5d 20 36 20 28 23 24 | 20 2e 20 32 30 36 35 29 |t] 6 (#$| . 2065)|
|00000960| 20 22 65 22 5d 29 0a 23 | 40 34 34 20 43 61 6c 63 | "e"]).#|@44 Calc|
|00000970| 75 6c 61 74 65 20 6e 65 | 77 20 77 69 6e 64 6f 77 |ulate ne|w window|
|00000980| 20 73 74 61 72 74 20 66 | 6f 72 20 64 72 61 67 20 | start f|or drag |
|00000990| 65 76 65 6e 74 2e 1f 0a | 28 64 65 66 61 6c 69 61 |event...|(defalia|
|000009a0| 73 20 27 73 63 72 6f 6c | 6c 2d 62 61 72 2d 64 72 |s 'scrol|l-bar-dr|
|000009b0| 61 67 2d 70 6f 73 69 74 | 69 6f 6e 20 23 5b 28 70 |ag-posit|ion #[(p|
|000009c0| 6f 72 74 69 6f 6e 2d 77 | 68 6f 6c 65 29 20 22 8a |ortion-w|hole) ".|
|000009d0| 65 c0 09 64 65 5a 5c 22 | 5c 5c 62 88 c2 79 88 60 |e..deZ\"|\\b..y.`|
|000009e0| 29 87 22 20 5b 73 63 72 | 6f 6c 6c 2d 62 61 72 2d |)." [scr|oll-bar-|
|000009f0| 73 63 61 6c 65 20 70 6f | 72 74 69 6f 6e 2d 77 68 |scale po|rtion-wh|
|00000a00| 6f 6c 65 20 30 5d 20 35 | 20 28 23 24 20 2e 20 32 |ole 0] 5| (#$ . 2|
|00000a10| 34 31 32 29 5d 29 0a 23 | 40 31 38 38 20 53 65 74 |412)]).#|@188 Set|
|00000a20| 20 74 68 65 20 77 69 6e | 64 6f 77 20 73 74 61 72 | the win|dow star|
|00000a30| 74 20 61 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 77 |t accord|ing to w|
|00000a40| 68 65 72 65 20 74 68 65 | 20 73 63 72 6f 6c 6c 20 |here the| scroll |
|00000a50| 62 61 72 20 69 73 20 64 | 72 61 67 67 65 64 2e 0a |bar is d|ragged..|
|00000a60| 4f 6e 6c 79 20 63 68 61 | 6e 67 65 20 77 69 6e 64 |Only cha|nge wind|
|00000a70| 6f 77 20 73 74 61 72 74 | 20 69 66 20 74 68 65 20 |ow start| if the |
|00000a80| 6e 65 77 20 73 74 61 72 | 74 20 69 73 20 73 75 62 |new star|t is sub|
|00000a90| 73 74 61 6e 74 69 61 6c | 6c 79 20 64 69 66 66 65 |stantial|ly diffe|
|00000aa0| 72 65 6e 74 2e 0a 45 56 | 45 4e 54 20 73 68 6f 75 |rent..EV|ENT shou|
|00000ab0| 6c 64 20 62 65 20 61 20 | 73 63 72 6f 6c 6c 20 62 |ld be a |scroll b|
|00000ac0| 61 72 20 63 6c 69 63 6b | 20 6f 72 20 64 72 61 67 |ar click| or drag|
|00000ad0| 20 65 76 65 6e 74 2e 1f | 0a 28 64 65 66 61 6c 69 | event..|.(defali|
|00000ae0| 61 73 20 27 73 63 72 6f | 6c 6c 2d 62 61 72 2d 6d |as 'scro|ll-bar-m|
|00000af0| 61 79 62 65 2d 73 65 74 | 2d 77 69 6e 64 6f 77 2d |aybe-set|-window-|
|00000b00| 73 74 61 72 74 20 23 5b | 28 65 76 65 6e 74 29 20 |start #[|(event) |
|00000b10| 22 08 18 c1 08 38 3a 83 | 0d 00 c1 82 0e 00 c2 08 |"....8:.|........|
|00000b20| 38 29 89 1b 40 1c c1 0b | 38 89 1d 40 54 0d 41 42 |8)..@...|8..@T.AB|
|00000b30| 1e 06 c7 1e 08 c7 1e 09 | ca 5c 66 21 1e 0b 8a cc |........|.\f!....|
|00000b40| 5c 66 21 71 88 cd 0d 21 | 16 08 cd 0e 06 21 0e 08 |\f!q...!|.....!..|
|00000b50| 54 5d 16 09 0e 0b 0e 09 | 56 84 51 00 0e 0b 0e 08 |T]......|V.Q.....|
|00000b60| 57 83 59 00 ce 5c 66 0e | 08 5c 22 82 5e 00 ce 5c |W.Y..\f.|.\".^..\|
|00000b70| 66 0e 0b 5c 22 2e 08 87 | 22 20 5b 65 76 65 6e 74 |f..\"...|" [event|
|00000b80| 20 32 20 31 20 65 6e 64 | 2d 70 6f 73 69 74 69 6f | 2 1 end|-positio|
|00000b90| 6e 20 77 69 6e 64 6f 77 | 20 70 6f 72 74 69 6f 6e |n window| portion|
|00000ba0| 2d 77 68 6f 6c 65 20 6e | 65 78 74 2d 70 6f 72 74 |-whole n|ext-port|
|00000bb0| 69 6f 6e 2d 77 68 6f 6c | 65 20 6e 69 6c 20 70 6f |ion-whol|e nil po|
|00000bc0| 72 74 69 6f 6e 2d 73 74 | 61 72 74 20 6e 65 78 74 |rtion-st|art next|
|00000bd0| 2d 70 6f 72 74 69 6f 6e | 2d 73 74 61 72 74 20 77 |-portion|-start w|
|00000be0| 69 6e 64 6f 77 2d 73 74 | 61 72 74 20 63 75 72 72 |indow-st|art curr|
|00000bf0| 65 6e 74 2d 73 74 61 72 | 74 20 77 69 6e 64 6f 77 |ent-star|t window|
|00000c00| 2d 62 75 66 66 65 72 20 | 73 63 72 6f 6c 6c 2d 62 |-buffer |scroll-b|
|00000c10| 61 72 2d 64 72 61 67 2d | 70 6f 73 69 74 69 6f 6e |ar-drag-|position|
|00000c20| 20 73 65 74 2d 77 69 6e | 64 6f 77 2d 73 74 61 72 | set-win|dow-star|
|00000c30| 74 5d 20 34 20 28 23 24 | 20 2e 20 32 35 38 39 29 |t] 4 (#$| . 2589)|
|00000c40| 20 22 65 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "e"]).(|defalias|
|00000c50| 20 27 73 63 72 6f 6c 6c | 2d 62 61 72 2d 64 72 61 | 'scroll|-bar-dra|
|00000c60| 67 2d 31 20 23 5b 28 65 | 76 65 6e 74 29 20 22 08 |g-1 #[(e|vent) ".|
|00000c70| 89 18 41 40 29 89 19 40 | 1a c3 09 38 1c 8a c5 5c |..A@)..@|...8...\|
|00000c80| 6e 21 71 88 65 c6 5c 66 | 64 65 5a 5c 22 5c 5c 62 |n!q.e.\f|deZ\"\\b|
|00000c90| 88 c7 79 88 c8 5c 6e 60 | 5c 22 2c 87 22 20 5b 65 |..y..\n`|\",." [e|
|00000ca0| 76 65 6e 74 20 73 74 61 | 72 74 2d 70 6f 73 69 74 |vent sta|rt-posit|
|00000cb0| 69 6f 6e 20 77 69 6e 64 | 6f 77 20 32 20 70 6f 72 |ion wind|ow 2 por|
|00000cc0| 74 69 6f 6e 2d 77 68 6f | 6c 65 20 77 69 6e 64 6f |tion-who|le windo|
|00000cd0| 77 2d 62 75 66 66 65 72 | 20 73 63 72 6f 6c 6c 2d |w-buffer| scroll-|
|00000ce0| 62 61 72 2d 73 63 61 6c | 65 20 30 20 73 65 74 2d |bar-scal|e 0 set-|
|00000cf0| 77 69 6e 64 6f 77 2d 73 | 74 61 72 74 5d 20 36 5d |window-s|tart] 6]|
|00000d00| 29 0a 23 40 31 33 33 20 | 53 63 72 6f 6c 6c 20 74 |).#@133 |Scroll t|
|00000d10| 68 65 20 77 69 6e 64 6f | 77 20 62 79 20 64 72 61 |he windo|w by dra|
|00000d20| 67 67 69 6e 67 20 74 68 | 65 20 73 63 72 6f 6c 6c |gging th|e scroll|
|00000d30| 20 62 61 72 20 73 6c 69 | 64 65 72 2e 0a 49 66 20 | bar sli|der..If |
|00000d40| 79 6f 75 20 63 6c 69 63 | 6b 20 6f 75 74 73 69 64 |you clic|k outsid|
|00000d50| 65 20 74 68 65 20 73 6c | 69 64 65 72 2c 20 74 68 |e the sl|ider, th|
|00000d60| 65 20 77 69 6e 64 6f 77 | 20 73 63 72 6f 6c 6c 73 |e window| scrolls|
|00000d70| 20 74 6f 20 62 72 69 6e | 67 20 74 68 65 20 73 6c | to brin|g the sl|
|00000d80| 69 64 65 72 20 74 68 65 | 72 65 2e 1f 0a 28 64 65 |ider the|re...(de|
|00000d90| 66 61 6c 69 61 73 20 27 | 73 63 72 6f 6c 6c 2d 62 |falias '|scroll-b|
|00000da0| 61 72 2d 64 72 61 67 20 | 23 5b 28 65 76 65 6e 74 |ar-drag |#[(event|
|00000db0| 29 20 22 c0 19 c2 1b 5c | 66 84 5c 6e 00 60 14 c0 |) "....\|f.\n.`..|
|00000dc0| 1c c5 0e 06 21 88 c7 20 | 88 c8 c2 21 2b 87 22 20 |....!.. |...!+." |
|00000dd0| 5b 6e 69 6c 20 64 6f 6e | 65 20 30 20 65 63 68 6f |[nil don|e 0 echo|
|00000de0| 2d 6b 65 79 73 74 72 6f | 6b 65 73 20 70 6f 69 6e |-keystro|kes poin|
|00000df0| 74 2d 62 65 66 6f 72 65 | 2d 73 63 72 6f 6c 6c 20 |t-before|-scroll |
|00000e00| 73 63 72 6f 6c 6c 2d 62 | 61 72 2d 64 72 61 67 2d |scroll-b|ar-drag-|
|00000e10| 31 20 65 76 65 6e 74 20 | 28 6c 61 6d 62 64 61 20 |1 event |(lambda |
|00000e20| 6e 69 6c 20 28 74 72 61 | 63 6b 2d 6d 6f 75 73 65 |nil (tra|ck-mouse|
|00000e30| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 3f 85 | (byte-c|ode ".?.|
|00000e40| 26 00 c1 20 89 12 a2 c3 | 3d 83 12 00 c1 20 12 5c |&.. ....|=.... .\|
|00000e50| 6e a2 c4 3d 83 20 00 c5 | 5c 6e 21 88 82 00 00 c6 |n..=. ..|\n!.....|
|00000e60| 89 10 82 01 00 87 22 20 | 5b 64 6f 6e 65 20 72 65 |......" |[done re|
|00000e70| 61 64 2d 65 76 65 6e 74 | 20 65 76 65 6e 74 20 6d |ad-event| event m|
|00000e80| 6f 75 73 65 2d 6d 6f 76 | 65 6d 65 6e 74 20 73 63 |ouse-mov|ement sc|
|00000e90| 72 6f 6c 6c 2d 62 61 72 | 2d 6d 6f 76 65 6d 65 6e |roll-bar|-movemen|
|00000ea0| 74 20 73 63 72 6f 6c 6c | 2d 62 61 72 2d 64 72 61 |t scroll|-bar-dra|
|00000eb0| 67 2d 31 20 74 5d 20 33 | 29 29 29 20 73 69 74 2d |g-1 t] 3|))) sit-|
|00000ec0| 66 6f 72 5d 20 32 20 28 | 23 24 20 2e 20 33 33 33 |for] 2 (|#$ . 333|
|00000ed0| 36 29 20 22 65 22 5d 29 | 0a 23 40 31 31 32 20 53 |6) "e"])|.#@112 S|
|00000ee0| 63 72 6f 6c 6c 20 74 68 | 65 20 77 69 6e 64 6f 77 |croll th|e window|
|00000ef0| 27 73 20 74 6f 70 20 6c | 69 6e 65 20 64 6f 77 6e |'s top l|ine down|
|00000f00| 20 74 6f 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e | to the |location|
|00000f10| 20 6f 66 20 74 68 65 20 | 73 63 72 6f 6c 6c 20 62 | of the |scroll b|
|00000f20| 61 72 20 63 6c 69 63 6b | 2e 0a 45 56 45 4e 54 20 |ar click|..EVENT |
|00000f30| 73 68 6f 75 6c 64 20 62 | 65 20 61 20 73 63 72 6f |should b|e a scro|
|00000f40| 6c 6c 20 62 61 72 20 63 | 6c 69 63 6b 2e 1f 0a 28 |ll bar c|lick...(|
|00000f50| 64 65 66 61 6c 69 61 73 | 20 27 73 63 72 6f 6c 6c |defalias| 'scroll|
|00000f60| 2d 62 61 72 2d 73 63 72 | 6f 6c 6c 2d 64 6f 77 6e |-bar-scr|oll-down|
|00000f70| 20 23 5b 28 65 76 65 6e | 74 29 20 22 c0 20 19 c2 | #[(even|t) ". ..|
|00000f80| 8e 0b 1b c4 0b 38 3a 83 | 12 00 c4 82 13 00 c5 0b |.....8:.|........|
|00000f90| 38 29 89 1e 06 40 1e 07 | c4 0e 06 38 1e 08 c9 1e |8)...@..|...8....|
|00000fa0| 5c 6e cb 0e 07 21 88 29 | 0e 5c 6e 84 33 00 60 16 |\n...!.)|.\n.3.`.|
|00000fb0| 5c 6e c9 1e 5c 6e cc cd | 0e 08 ce 20 53 5c 22 21 |\n..\n..|... S\"!|
|00000fc0| 2e 06 87 22 20 5b 73 65 | 6c 65 63 74 65 64 2d 77 |..." [se|lected-w|
|00000fd0| 69 6e 64 6f 77 20 6f 6c | 64 2d 73 65 6c 65 63 74 |indow ol|d-select|
|00000fe0| 65 64 2d 77 69 6e 64 6f | 77 20 28 28 73 65 6c 65 |ed-windo|w ((sele|
|00000ff0| 63 74 2d 77 69 6e 64 6f | 77 20 6f 6c 64 2d 73 65 |ct-windo|w old-se|
|00001000| 6c 65 63 74 65 64 2d 77 | 69 6e 64 6f 77 29 29 20 |lected-w|indow)) |
|00001010| 65 76 65 6e 74 20 32 20 | 31 20 65 6e 64 2d 70 6f |event 2 |1 end-po|
|00001020| 73 69 74 69 6f 6e 20 77 | 69 6e 64 6f 77 20 70 6f |sition w|indow po|
|00001030| 72 74 69 6f 6e 2d 77 68 | 6f 6c 65 20 6e 69 6c 20 |rtion-wh|ole nil |
|00001040| 70 6f 69 6e 74 2d 62 65 | 66 6f 72 65 2d 73 63 72 |point-be|fore-scr|
|00001050| 6f 6c 6c 20 73 65 6c 65 | 63 74 2d 77 69 6e 64 6f |oll sele|ct-windo|
|00001060| 77 20 73 63 72 6f 6c 6c | 2d 64 6f 77 6e 20 73 63 |w scroll|-down sc|
|00001070| 72 6f 6c 6c 2d 62 61 72 | 2d 73 63 61 6c 65 20 77 |roll-bar|-scale w|
|00001080| 69 6e 64 6f 77 2d 68 65 | 69 67 68 74 5d 20 35 20 |indow-he|ight] 5 |
|00001090| 28 23 24 20 2e 20 33 38 | 30 37 29 20 22 65 22 5d |(#$ . 38|07) "e"]|
|000010a0| 29 0a 23 40 31 30 38 20 | 53 63 72 6f 6c 6c 20 74 |).#@108 |Scroll t|
|000010b0| 68 65 20 6c 69 6e 65 20 | 6e 65 78 74 20 74 6f 20 |he line |next to |
|000010c0| 74 68 65 20 73 63 72 6f | 6c 6c 20 62 61 72 20 63 |the scro|ll bar c|
|000010d0| 6c 69 63 6b 20 74 6f 20 | 74 68 65 20 74 6f 70 20 |lick to |the top |
|000010e0| 6f 66 20 74 68 65 20 77 | 69 6e 64 6f 77 2e 0a 45 |of the w|indow..E|
|000010f0| 56 45 4e 54 20 73 68 6f | 75 6c 64 20 62 65 20 61 |VENT sho|uld be a|
|00001100| 20 73 63 72 6f 6c 6c 20 | 62 61 72 20 63 6c 69 63 | scroll |bar clic|
|00001110| 6b 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |k...(def|alias 's|
|00001120| 63 72 6f 6c 6c 2d 62 61 | 72 2d 73 63 72 6f 6c 6c |croll-ba|r-scroll|
|00001130| 2d 75 70 20 23 5b 28 65 | 76 65 6e 74 29 20 22 c0 |-up #[(e|vent) ".|
|00001140| 20 19 c2 8e 0b 1b c4 0b | 38 3a 83 12 00 c4 82 13 | .......|8:......|
|00001150| 00 c5 0b 38 29 89 1e 06 | 40 1e 07 c4 0e 06 38 1e |...8)...|@.....8.|
|00001160| 08 c9 1e 5c 6e cb 0e 07 | 21 88 29 0e 5c 6e 84 33 |...\n...|!.).\n.3|
|00001170| 00 60 16 5c 6e c9 1e 5c | 6e cc cd 0e 08 ce 20 53 |.`.\n..\|n..... S|
|00001180| 5c 22 21 2e 06 87 22 20 | 5b 73 65 6c 65 63 74 65 |\"!..." |[selecte|
|00001190| 64 2d 77 69 6e 64 6f 77 | 20 6f 6c 64 2d 73 65 6c |d-window| old-sel|
|000011a0| 65 63 74 65 64 2d 77 69 | 6e 64 6f 77 20 28 28 73 |ected-wi|ndow ((s|
|000011b0| 65 6c 65 63 74 2d 77 69 | 6e 64 6f 77 20 6f 6c 64 |elect-wi|ndow old|
|000011c0| 2d 73 65 6c 65 63 74 65 | 64 2d 77 69 6e 64 6f 77 |-selecte|d-window|
|000011d0| 29 29 20 65 76 65 6e 74 | 20 32 20 31 20 65 6e 64 |)) event| 2 1 end|
|000011e0| 2d 70 6f 73 69 74 69 6f | 6e 20 77 69 6e 64 6f 77 |-positio|n window|
|000011f0| 20 70 6f 72 74 69 6f 6e | 2d 77 68 6f 6c 65 20 6e | portion|-whole n|
|00001200| 69 6c 20 70 6f 69 6e 74 | 2d 62 65 66 6f 72 65 2d |il point|-before-|
|00001210| 73 63 72 6f 6c 6c 20 73 | 65 6c 65 63 74 2d 77 69 |scroll s|elect-wi|
|00001220| 6e 64 6f 77 20 73 63 72 | 6f 6c 6c 2d 75 70 20 73 |ndow scr|oll-up s|
|00001230| 63 72 6f 6c 6c 2d 62 61 | 72 2d 73 63 61 6c 65 20 |croll-ba|r-scale |
|00001240| 77 69 6e 64 6f 77 2d 68 | 65 69 67 68 74 5d 20 35 |window-h|eight] 5|
|00001250| 20 28 23 24 20 2e 20 34 | 32 36 34 29 20 22 65 22 | (#$ . 4|264) "e"|
|00001260| 5d 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |]).(byte|-code ".|
|00001270| c1 c2 5c 22 88 c0 c3 c2 | 5c 22 88 c0 c4 c5 5c 22 |..\"....|\"....\"|
|00001280| 88 c0 c6 c7 5c 22 88 c0 | c8 c7 5c 22 88 c9 ca 21 |....\"..|..\"...!|
|00001290| 87 22 20 5b 67 6c 6f 62 | 61 6c 2d 73 65 74 2d 6b |." [glob|al-set-k|
|000012a0| 65 79 20 5b 76 65 72 74 | 69 63 61 6c 2d 73 63 72 |ey [vert|ical-scr|
|000012b0| 6f 6c 6c 2d 62 61 72 20 | 6d 6f 75 73 65 2d 31 5d |oll-bar |mouse-1]|
|000012c0| 20 73 63 72 6f 6c 6c 2d | 62 61 72 2d 73 63 72 6f | scroll-|bar-scro|
|000012d0| 6c 6c 2d 75 70 20 5b 76 | 65 72 74 69 63 61 6c 2d |ll-up [v|ertical-|
|000012e0| 73 63 72 6f 6c 6c 2d 62 | 61 72 20 64 72 61 67 2d |scroll-b|ar drag-|
|000012f0| 6d 6f 75 73 65 2d 31 5d | 20 5b 76 65 72 74 69 63 |mouse-1]| [vertic|
|00001300| 61 6c 2d 73 63 72 6f 6c | 6c 2d 62 61 72 20 64 6f |al-scrol|l-bar do|
|00001310| 77 6e 2d 6d 6f 75 73 65 | 2d 32 5d 20 73 63 72 6f |wn-mouse|-2] scro|
|00001320| 6c 6c 2d 62 61 72 2d 64 | 72 61 67 20 5b 76 65 72 |ll-bar-d|rag [ver|
|00001330| 74 69 63 61 6c 2d 73 63 | 72 6f 6c 6c 2d 62 61 72 |tical-sc|roll-bar|
|00001340| 20 6d 6f 75 73 65 2d 33 | 5d 20 73 63 72 6f 6c 6c | mouse-3|] scroll|
|00001350| 2d 62 61 72 2d 73 63 72 | 6f 6c 6c 2d 64 6f 77 6e |-bar-scr|oll-down|
|00001360| 20 5b 76 65 72 74 69 63 | 61 6c 2d 73 63 72 6f 6c | [vertic|al-scrol|
|00001370| 6c 2d 62 61 72 20 64 72 | 61 67 2d 6d 6f 75 73 65 |l-bar dr|ag-mouse|
|00001380| 2d 33 5d 20 70 72 6f 76 | 69 64 65 20 73 63 72 6f |-3] prov|ide scro|
|00001390| 6c 6c 2d 62 61 72 5d 20 | 33 29 0a |ll-bar] |3). |
+--------+-------------------------+-------------------------+--------+--------+